package com.amazon.inapp.purchasing;

import java.util.HashSet;
import java.util.Set;

public final class PurchaseUpdatesResponse
{
  private static final String TO_STRING_FORMAT = "(%s, requestId: \"%s\", purchaseUpdatesRequestStatus: \"%s\", userId: \"%s\", receipts: %s, revokedSkus: %s, offset: \"%s\", isMore: \"%b\")";
  private final boolean _isMore;
  private final Offset _offset;
  private final PurchaseUpdatesRequestStatus _purchaseUpdatesRequestStatus;
  private final Set<Receipt> _receipts;
  private final String _requestId;
  private final Set<String> _revokedSkus;
  private final String _userId;

  PurchaseUpdatesResponse(String paramString1, String paramString2, PurchaseUpdatesRequestStatus paramPurchaseUpdatesRequestStatus, Set<Receipt> paramSet, Set<String> paramSet1, Offset paramOffset, boolean paramBoolean)
  {
    Validator.validateNotNull(paramString1, "requestId");
    Validator.validateNotNull(paramPurchaseUpdatesRequestStatus, "purchaseUpdatesRequestStatus");
    Validator.validateNotNull(paramOffset, "offset");
    if (PurchaseUpdatesRequestStatus.SUCCESSFUL == paramPurchaseUpdatesRequestStatus)
    {
      Validator.validateNotNull(paramString2, "userId");
      Validator.validateNotNull(paramSet, "receipts");
      Validator.validateNotNull(paramSet1, "revokedSkus");
    }
    this._requestId = paramString1;
    this._userId = paramString2;
    this._purchaseUpdatesRequestStatus = paramPurchaseUpdatesRequestStatus;
    if (paramSet != null)
    {
      this._receipts = paramSet;
      if (paramSet1 == null)
        break label112;
    }
    while (true)
    {
      this._revokedSkus = paramSet1;
      this._offset = paramOffset;
      this._isMore = paramBoolean;
      return;
      paramSet = new HashSet();
      break;
      label112: paramSet1 = new HashSet();
    }
  }

  public Offset getOffset()
  {
    return this._offset;
  }

  public PurchaseUpdatesRequestStatus getPurchaseUpdatesRequestStatus()
  {
    return this._purchaseUpdatesRequestStatus;
  }

  public Set<Receipt> getReceipts()
  {
    return this._receipts;
  }

  public String getRequestId()
  {
    return this._requestId;
  }

  public Set<String> getRevokedSkus()
  {
    return this._revokedSkus;
  }

  public String getUserId()
  {
    return this._userId;
  }

  public boolean isMore()
  {
    return this._isMore;
  }

  public String toString()
  {
    Object[] arrayOfObject = new Object[8];
    arrayOfObject[0] = super.toString();
    arrayOfObject[1] = this._requestId;
    arrayOfObject[2] = this._purchaseUpdatesRequestStatus;
    arrayOfObject[3] = this._userId;
    arrayOfObject[4] = this._receipts;
    arrayOfObject[5] = this._revokedSkus;
    arrayOfObject[6] = this._offset;
    arrayOfObject[7] = Boolean.valueOf(this._isMore);
    return String.format("(%s, requestId: \"%s\", purchaseUpdatesRequestStatus: \"%s\", userId: \"%s\", receipts: %s, revokedSkus: %s, offset: \"%s\", isMore: \"%b\")", arrayOfObject);
  }

  public static enum PurchaseUpdatesRequestStatus
  {
    static
    {
      FAILED = new PurchaseUpdatesRequestStatus("FAILED", 1);
      PurchaseUpdatesRequestStatus[] arrayOfPurchaseUpdatesRequestStatus = new PurchaseUpdatesRequestStatus[2];
      arrayOfPurchaseUpdatesRequestStatus[0] = SUCCESSFUL;
      arrayOfPurchaseUpdatesRequestStatus[1] = FAILED;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.inapp.purchasing.PurchaseUpdatesResponse
 * JD-Core Version:    0.6.2
 */